//
//  NewAddressCell.h
//  WOPrototype
//
//  Created by Olof Millberg on 2010-04-23.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WOTableViewCell.h"

@protocol WONewAddressDelegate;

@interface NewAddressCell : WOTableViewCell <UITextFieldDelegate>
{
	UITextField *streetField;
	UITextField *areaField;
	UITextField *postalCodeField;
	UITextField *cityField;
	id<WONewAddressDelegate> delegate;
}
@property (nonatomic, retain) IBOutlet UITextField *streetField;
@property (nonatomic, retain) IBOutlet UITextField *areaField;
@property (nonatomic, retain) IBOutlet UITextField *postalCodeField;
@property (nonatomic, retain) IBOutlet UITextField *cityField;
@property (nonatomic, assign) id<WONewAddressDelegate> delegate;

@end

@protocol WONewAddressDelegate

- (void) newAddressCell:(NewAddressCell*)addressCell streetChanged:(NSString*)newStreet;
- (void) newAddressCell:(NewAddressCell*)addressCell areaChanged:(NSString*)newArea;
- (void) newAddressCell:(NewAddressCell*)addressCell postalCodeChanged:(NSString*)newPostalCode;
- (void) newAddressCell:(NewAddressCell*)addressCell cityChanged:(NSString*)newCity;

@end